package com.youlai.boot.modules.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.resource.model.Resource;
import com.youlai.boot.modules.resource.model.ResourceVO;
import com.youlai.boot.modules.resource.model.ResourcePageQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ResourceMapper extends BaseMapper<Resource> {
    Page<ResourceVO> getResourcePage(Page<ResourceVO> page, ResourcePageQuery query);

    List<ResourceVO> getProductImages(@Param("productId") Long productId);    

    List<ResourceVO> getProductPriceImages(@Param("productId") Long productId);

    List<ResourceVO> getPolicyImages(@Param("merchantId") Long merchantId);
}
